﻿@model IEnumerable<Sohobloo.SoAuth.Web.Models.UserModel>

<h2>User</h2>
@Html.ActionLink("Back", "Index", "Home")
@Html.ActionLink("Create", "Add")

<table>
    <tr>
        <th>
            @Html.DisplayNameFor(u => u.UserName)
        </th>
        <th>
            @Html.DisplayNameFor(u => u.NickName)
        </th>
        <th>
            @Html.DisplayNameFor(u => u.Email)
        </th>
        <th>
            @Html.DisplayNameFor(u => u.UserStatus)
        </th>
        <th>
        </th>
    </tr>
    @foreach (var user in Model)
    {
        <tr>
            <td>
                @Html.DisplayFor(m => user.UserName)
            </td>
            <td>
                @Html.DisplayFor(m => user.NickName)
            </td>
            <td>
                @Html.DisplayFor(m => user.Email)
            </td>
            <td>
                @Html.DisplayFor(m => user.UserStatus)
            </td>
            <td>
                @Html.ActionLink("Edit", "Edit", new {user.Id})
                @Html.ActionLink("Delete", "Delete", new {user.Id})
            </td>
        </tr>
    }
</table>